﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace EakTest
{
    public class MessageDialog
    {
        public static void Information(string message)
        {
            MessageBox.Show(message, MessageCaption.Information, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static bool Confirmation(string message)
        {
            return MessageBox.Show(message, MessageCaption.Confirmation, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes;
        }

        public static void Warning(string message)
        {
            MessageBox.Show(message, MessageCaption.BusinessError, MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }

        public static void Error(string message)
        {
            MessageBox.Show(message, MessageCaption.SystemError, MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
    }

    public class MessageCaption
    {
        public static string Information = "Information";
        public static string Confirmation = "Confirmation";
        public static string BusinessError = "Warning";
        public static string SystemError = "Error";
    }
}
